﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HA.Data
{
    /// <summary>
    /// 配置信息
    /// </summary>
    public class ListDisplaySetup
    {



        bool _isSuppressWarnings = false;
        /// <summary>
        /// true 的时候不显示 warning 信息
        /// </summary>
        public bool IsSuppressWarnings
        {
            get { return _isSuppressWarnings; }
            set { _isSuppressWarnings = value; }
        }



        bool _isDisplayAllErrors = true;
        /// <summary>
        /// true  时显示所有Error 信息
        /// </summary>
        public bool IsDisplayAllErrors
        {
            get { return _isDisplayAllErrors; }
            set { _isDisplayAllErrors = value; }
        }


        int _displayErrorsMaxNum = 5;

        public int DisplayErrorsMaxNum
        {
            get { return _displayErrorsMaxNum; }
            set { _displayErrorsMaxNum = value; }
        }




        public void UpdateSetup(bool isSuppressWarnings, bool isDisplayAllErrors, int displayErrorsMaxNum)
        {

            _isSuppressWarnings = isSuppressWarnings;

            _isDisplayAllErrors = isDisplayAllErrors;

            _displayErrorsMaxNum = displayErrorsMaxNum;

        }


    }

}
